<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>页面类型 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>		
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li><a href=".">主题列表</a></li>
			    <li><a href="./?Ctlr=PageType">页面类型</a></li>
			    <li class="active"><a href="#">{if $editing}编辑{else}新增{/if}主题</a></li>
		    </ul>
		    {if $page_tip_info}
		    <div class="alert {$alert_cls}">
		        <button class="close" data-dismiss="alert">×</button>
		        {$page_tip_info}
	      	</div>
	      	{/if}
		</div>
		<div>
			<form class="form-horizontal" id="theme-form" method="POST" action="./?Ctlr=SaveTheme">
				<input type="hidden" name="theme_id" id="theme_id" value="{$theme_id}"/>
		       	<fieldset>          		
		       		<div class="control-group {$error_cls.name}">
		         		<label class="control-label" for="name">主题名</label>
		            	<div class="controls">
		              		<input type="text" id="name" name="name" value="{$name}">
		              		<span class="help-inline">{$error.name}</span>
		            	</div>
		          	</div>          
		          		
		          	<div class="control-group">
		            	<label class="control-label" for="page_type_name">设为默认</label>
		            	<div class="controls">
		             		<label class="checkbox">
				                <input type="checkbox" name="selected" {'1'|checked:$selected}>
				   			</label>
		            	</div>
		          	</div>
		          	
		          	<div class="control-group">
		            	<label class="control-label" for="note">备注</label>
		            	<div class="controls">
		             		<textarea class="input-xlarge" name="note" id="note" rows="3">{$note}</textarea>
		            	</div>
		          	</div>
		          		
			        <div class="form-actions">
			            <button type="submit" class="btn btn-primary">保存</button>
			            {if $editing != 1}
			            <button type="submit" name="goon" value="1" class="btn btn-primary">新增并继续</button>
			            {/if}		            	
			            <a href="./" class="btn">取消</a>
			        </div>
		        </fieldset>
		    </form>
		</div>		
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>
		<script type="text/javascript" src="{'plugins/jquery.validate.js'|jquery}"></script>
		<script type="text/javascript" src="theme.js"></script>		
	</body>
</html>